package com.avantis.common.entity;

import com.avantis.common.entity.base.BaseEntity;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @Author: tracywang
 * @Date: 2019/1/12
 * @Descrption:
 */
@Entity
@Data
@Table(name = "k_common_code")
public class CommonCode  extends BaseEntity implements Serializable {

    @Column
    private String codeType;

    @Column
    private String code;

    @Column
    private String value;

    @Column
    private String parentId;

    @Column
    private Integer codeStatus=0;

    @Column
    private int sort=0;

    @Transient
    private List<CommonCode> list= new ArrayList<>();
}
